<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHP测试商城后台</title>
<link type="text/css" rel="stylesheet" href="./public/css/style.css" />
<script type="text/javascript" src="./public/scripts/function-manage.js"></script>
	<style type="text/css">
		#span{
			color:red;
			font-size:25px;
			font-bold:bold;
			margin-left:500px;
		}
	</style>
</head>
<body>
<div id="header" class="wrap">
	<div id="logo"><img src="./public/images/logo.gif" /></div>
	<div class="help"><a href="../index.php">返回前台页面</a></div>
	<div class="navbar">
		<ul class="clearfix">
			<li class="current"><a href="index.php">首页</a></li>
			<li><a href="index.php?m=admin&a=user">用户</a></li>
			<li><a href="index.php?m=product&a=show">商品</a></li>
			<li><a href="index.php?m=order&a=show">订单</a></li>
			<li><a href="index.php?m=messages&a=show">留言</a></li>
			<li><a href="index.php?m=news&a=show">新闻</a></li>
		</ul>
	</div>
</div>
<div id="childNav">
	<div class="welcome wrap">
		管理员 <?php echo $_SESSION['user']['u_name']; ?> 您好，今天是<?php echo date('Y-m-d H:i:s',$_SESSION['user']['u_logintime']); ?>，欢迎回到管理后台。
	</div>
</div>
<div id="position" class="wrap">
	您现在的位置：<a href="index.html">php测试</a> &gt; 管理后台
</div>
<div id="main" class="wrap">
	<div id="menu-mng" class="lefter">
		<div class="box">
			<dl>
				<dt>用户管理</dt>
				<dd><em><a href="index.php?m=admin&a=add">新增</a></em><a href="index.php?m=admin&a=user">用户管理</a></dd>
				<dt>商品信息</dt>
				<dd><em><a href="index.php?m=product&a=add">新增</a></em><a href="index.php?m=category&a=show">分类管理</a></dd>
				<dd><em><a href="index.php?m=category&a=add">新增</a></em><a href="index.php?m=product&a=show">商品管理</a></dd>
				<dt>订单管理</dt>
				<dd><a href="index.php?m=order&a=show">订单管理</a></dd>
				<dt>留言管理</dt>
				<dd><a href="index.php?m=messages&a=show">留言管理</a></dd>
				<dt>新闻管理</dt>
				<dd><em><a href="index.php?m=news&a=add">新增</a></em><a href="index.php?m=news&a=show">新闻管理</a></dd>
			</dl>
		</div>
	</div>
	<div class="main">
		<h2>订单管理</h2>
		<div class="manage">
			<div class="search">
				<form method="get">
					订单号：<input type="text" class="text" name="orderId" /> 订货人：<input type="text" class="text" name="userName" /> <label class="ui-blue"><input type="submit" name="submit" value="查询" /></label>
				</form>
			</div>
			<div class="spacer"></div>
			<table class="list">
				<tr>
					<th>订单编号</th>
					<th>产品名字</th>
					<th>数量</th>
					<th>单价</th>
					<th>发货地址</th>
					<th>总金额</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
				<?php for($i=0;$i<count($nums);$i++): ?>
				<tr>
					<td class="first w4 c"><?php echo $orders[0]['o_hao'];?></td>
					<td class="w1 c"><?php echo $names[$i];?></td>
					<td width='20px'><?php echo $nums[$i];?></td>
					<td width='30px'><?php echo $prices[$i];?></td>
					<td align='center'><?php echo $res['u_addr'];?></td>
					<td class="w1 c"><?php echo $totals[$i];?></td>
					<td width='30px'>发货</td>
					
					<td class="w1 c"><a href="order-modify.html">修改</a> <a href="javascript:Delete(1);">删除</a></td>
				</tr>
				<?php endfor; ?>
				<!-- <tr>
					<td class="first w4 c">es00001</td>
					<td class="w1 c">三星</td>
					<td align='center'>1</td>
					<td align='center'>花果山</td>
					<td class="w1 c">2200</td>
					<td class="w1 c">审核通过</td>
					
					<td class="w1 c"><a href="order-modify.html">修改</a> <a href="javascript:Delete(1);">删除</a></td>
				</tr> -->
			</table>
			<span id='span'><?php echo '总金额是：',$money,'元'; ?></span>
			<div class="pager">
				<ul class="clearfix">
					<li><a href="#">上一页</a></li>
					<li class="current">1</li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">4</a></li>
					<li><a href="#">5</a></li>
					<li><a href="#">下一页</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="footer">
	Copyright &copy; 2015 PHP测试商城后台 All Rights Reserved. 京ICP证1000001号
</div>
</body>
</html>
